//index.js
const app = getApp()
Page({
    data: {
        userInfo: "",
        clickUsetStats: ''
    },
    clickUserInfo() {
        let clickUsetStats = this.data.clickUsetStats;
        this.setData({
            clickUsetStats: clickUsetStats + 1
        })
        if (clickUsetStats > 5) {
            let _self = this
            let userInfo = wx.getStorageSync('userInfo');
            wx.setClipboardData({
                data: `${userInfo.uid} ${userInfo.userToken} ${userInfo.mobile}`,
                success: function () {
                    _self.setData({
                        clickUsetStats: 0
                    })
                }
            })
        }
    },
    onLoad: function (options) {
        wx.setNavigationBarTitle({
            title: "估分助手"
        })
    },
    onShow: function () {

    },
    enterExam() {
        wx.navigateTo({
            url: '../home/home'
        })
    },
    onShareAppMessage: function () {
        let shareImgUrl = app.globalData.shareImg
        return {
            imageUrl: shareImgUrl,
            path: '/pages/index/index'
        };
    }
})